package com.xx.pmis.services;

import java.util.List;

import com.xx.pmis.model.Stock;

public interface StockService {
	public void saveOrUpdateStock(Stock stock) throws Exception;

	public void saveStock(Stock stock) throws Exception;

	public void deleteStock(Stock stock) throws Exception;

	// 根据股票ID查询该股票
	public Stock getStockByStockID(String stockID) throws Exception;

	// 查询所有股票
	public List<Stock> getAllStock() throws Exception;

	// 查询所有股票，分页显示
	public List<Stock> getAllStockByPage(int currentPage, int lineSize) throws Exception;

	// 股票数
	public int getCountOfStock() throws Exception;

}
